import {apiResquest} from '@/utils/Http.js'

// 获取指南信息 1-公告 2-资讯 3-用药指导指南 4-检查指南 5-检验指南 、6体检指南 、7 住院指南 8 门诊指南 9医保指南
export const getGuide = params => {
    return apiResquest({
      url: "/api/guideConfig",
      method: "get",
      data: params
    });
};

// 获取指南信息 1-公告 2-资讯 3-用药指导指南 4-检查指南 5-检验指南 、6体检指南 、7 住院指南 8 门诊指南 9医保指南
export const getGuideType = params => {
    return apiResquest({
      url: "/api/guideConfig/findById",
      method: "get",
      data: params
    });
};

// 获取问卷调查表
export const getQuestion = params => {
    return apiResquest({
      url: "/api/question",
      method: "get",
      data: params
    });
};
// 提交问卷调查表
export const poQuestion = params => {
    return apiResquest({
      url: "/api/question",
      method: "post",
      data: params
    });
};

// 获取就诊排队信息
export const getQueuing = params => {
    return apiResquest({
      url: "/api/outPatient/queryVisitQueuing",
      method: "get",
      data: params
    });
};


// 获取自助缴费项目
export const getSelfPay = params => {
    return apiResquest({
      url: "/api/homeMenu/selfPayItems",
      method: "get",
      data: params
    });
};

// 自助缴费结算
export const poSelfPay = params => {
    return apiResquest({
      url: "/api/outPatient/addSelfPayItem",
      method: "post",
      data: params
    });
};
// 门诊与自助缴费缴费预算
export const poBudget = params => {
    return apiResquest({
      url: "/api/outPatient/payBudget",
      method: "post",
      data: params
    });
};



// 医生介绍
export const getDoctorList = params => {
    return apiResquest({
      url: "/api/hospitalDept/getDoctorInfo",
      method: "get",
      data: params
    });
};

// 收藏医生
export const collectDoctor = params => {
    return apiResquest({
      url: "/api/hisSchedule/collectionDoctor",
      method: "post",
      data: params
    });
};

// 我的缴费
export const getPayList = params => {
    return apiResquest({
      url: "/api/outPatient/queryPaid",
      method: "post",
      data: params
    });
};

// 院内导航
export const getHospitalGuide = params => {
    return apiResquest({
      url: "/api/navigation",
      method: "get",
      data: params
    });
};

// 智慧医院
// 电子病例
export const getElectronicCase= params => {
    return apiResquest({
      url: "/api/outPatient/queryCase",
      method: "get",
      data: params
    });
};
// 床位预约
export const getBedOrderDetail= params => {
    return apiResquest({
      url: "/api/inAdvancePayment/queryBedReserved",
      method: "get",
      data: params
    });
};
export const getBedOrderList= params => {
    return apiResquest({
      url: "/api/inAdvancePayment/queryRemainingBedsList",
      method: "get",
      data: params
    });
};
export const poBedOrder= params => {
    return apiResquest({
      url: "/api/inAdvancePayment/bedReservation",
      method: "post",
      data: params
    });
};

// 眉山医保
export const getInsuranceInfo= params => {
    return apiResquest({
      url: "/api/medical/getMedicalList",
      method: "get",
      data: params
    });
};
export const poInsurance= params => {
    return apiResquest({
      url: "/api/medical/authMedicalInsurance",
      method: "get",
      data: params
    });
};
export const deInsurance= params => {
    return apiResquest({
      url: "/api/medical/deleteMedicalInsurance",
      method: "post",
      data: params
    });
};

// 通知消息
export const getMsgList= params => {
    return apiResquest({
      url: "/api/messageSwitch/getMsgList",
      method: "get",
      data: params
    });
};
export const poMsgList= params => {
    return apiResquest({
      url: "/api/messageSwitch/updateMsg",
      method: "post",
      data: params
    });
};
export const getSwitchList= params => {
    return apiResquest({
      url: "/api/messageSwitch/getSwitchList",
      method: "get",
      data: params
    });
};
export const poSwitchList= params => {
    return apiResquest({
      url: "/api/messageSwitch/saveSwitch",
      method: "post",
      data: params
    });
};

// 智能导诊
export const getGuidance= params => {
    return apiResquest({
      url: "/api/intelligentGuidance",
      method: "get",
      data: params
    });
};

// 缴费时调用接口将订单合一
export const prescriptionPayment= params => {
    return apiResquest({
      url: "/api/outPatient/prescriptionPayment",
      method: "post",
      data: params
    });
};

// 缴费支付回调
export const regist1erback= params => {
    return apiResquest({
      url: "/api/weixin/paymentback",
      method: "post",
      data: params
    });
};

// 智能导诊
export const guidance= params => {
    return apiResquest({
      url: "/api/intelligentGuidance/list",
      method: "post",
      data: params
    });
};

// 预问诊
export const intelligentCustomerService= params => {
    return apiResquest({
      url: "/api/intelligentCustomerService/find",
      method: "post",
      data: params
    });
};

// 自助开单获取检验项目
export const billingproject= params => {
    return apiResquest({
      url: "/api/hsop/pes/billingproject",
      method: "post",
      data: params
    });
};


// 创建自助开单订单
export const createBilling= params => {
    return apiResquest({
      url: "/api/hsop/pes/billing",
      method: "post",
      data: params
    });
};
// 自助开单支付
export const freedompay= params => {
    return apiResquest({
      url: "/api/weixin/freedompay",
      method: "post",
      data: params
    });
};

// 自助开单支付回调
export const freedomback= params => {
    return apiResquest({
      url: "/api/weixin/freedomback",
      method: "post",
      data: params
    });
};

// 自助开单查询
export const querybilling= params => {
    return apiResquest({
      url: "/api/hsop/pes/querybilling",
      method: "post",
      data: params
    });
};

// 药品
export const getdrug= params => {
    return apiResquest({
      url: "/api/health/getdrug",
      method: "post",
      data: params
    });
};
/**============================================
 * 常见问题分类
 ==============================================*/
export const questionTypeQuery = params => {
    return apiResquest({
      url: "/api/frequentlyAskedQuestions/search",
      method: "post",
      data: params
    });
};
/**============================================
 * 常见问题
 ==============================================*/
 export const questionsQuery = params => {
     return apiResquest({
       url: "/api/frequentlyAskedQuestions/query",
       method: "post",
       data: params
     });
 };
 /**============================================
  * 用户反馈
  ==============================================*/
  export const userFeedback = params => {
      return apiResquest({
        url: "/api/userFeedback/add",
        method: "post",
        data: params
      });
  };